import { request } from '@/service/request/index';

export const postAction = (url: string, data: any) => {
  return request({
    url,
    method: 'post',
    data
  });
}

export const getAction = (url: string) => {
  return request({
    url,
    method: 'get',
  });
}

export const uploadAction = (url: string, data: any) => {
  return request({
    url,
    method: 'post',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}
